library Wave11e initializer init requires LegacySystem

    private function Wave11e takes nothing returns nothing
        set udg_CurrentWave = 11
        call GenericActions.execute()
        set udg_IntenseSpawn=0
		
        //set udg_soundpath = "Sound\\Music\\mp3Music\\Undead1.mp3"
		//call PlaySoundPath.execute()
		
		set udg_soundpath = "war3mapImported\\StarcraftZerg3compressed.mp3"
        call PlaySoundPath.execute()
	  
        call RandomSpawn('n001',2,udg_Spawn) //Immortal #2
        call PolledWait(20.)
        if GetRandomInt(0,10)==1 then
            call RandomSpawn('U008',2,GetRandomInt(0,1)) //Moirae
            call StartSound(gg_snd_HeartBeat)
            call PolledWait(5.)
            call StartSound(gg_snd_HeartBeat)
            call PolledWait(5.)
            call StartSound(gg_snd_HeartBeat)
        else
            call RandomSpawn('z00C',2,GetRandomInt(0,1)) //Assasin
        endif
        call PolledWait(100.)
        call ExecuteRegisteredFunction("Wave12e")
    endfunction

    private function init takes nothing returns nothing
        call RegisterFunction("Wave11e", function Wave11e)
        // call ExecuteRegisteredFunction("Wave11e")
    endfunction


endlibrary

